package com.druid.enums;

import lombok.AllArgsConstructor;

@SuppressWarnings("unused")
@AllArgsConstructor
public enum ResponseDataEnums implements  ResponseInterface {

    RESPONSE_SYSTEM_ERROR(1000, "系统内部异常"),

    RESPONSE_SUCCESS(2000,"数据响应成功"),

    RESPONSE_FAIL(5000,"数据响应失败"),

    RESPONSE_INSERT_EXPRESSIONSTORE_FAIL(50006, "插入失败"),
    RESPONSE_UPDATE_EXPRESSIONSTORE_FAIL(50007, "修改失败"),
    RESPONSE_DELETE_EXPRESSIONSTORE_FAIL(50007, "删除失败"),

    RESPONSE_FAIL_PARAMS(3000,"参数响应失败"),
    RESPONSE_FAIL_HANDLE(3001,"操作过于频繁"),
    RESPONSE_FAIL_PARAMS_FORMAT(3002,"参数格式不正确");


    public Integer statusCode;
    public String name;

    @Override
    public Integer getStatusCode() {
        return this.statusCode;
    }

    @Override
    public String getName() {
        return this.name;
    }
}
